<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <base href="<%=basePath%>">
    <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/ext-lang-zh_CN.js"></script>
   <script type="text/javascript" src="js/navy/addpicture.js"></script>
      <base href="<%=basePath%>">

    <script type="text/javascript">
    submit= function() {  
          if (this.form.getForm().isValid()) {  
              var id = this.form.getForm().findField("id").getValue();  
              this.form.getForm().submit({  
                  waitTitle: '保存数据',  
                  waitMsg: '正在保存……',  
                  scope: this,  
                  method: 'post',  
                  params: '',  
                  success: function(form, action) {  
                      var info = action.result.info;  
                      if (action.result.success) {  
                          this.store.reload();  
                          if (action.result.method == "Create") {  
                              this.form.getForm().reset();  
                          } else {  
                              this.dlg.hide();  
                          }  
                      }  
                      Ext.Msg.alert('信息', info);  
                  },  
                  failure: function(form, action) {  
                      var info = action.result.info;  
                Ext.Msg.alert('提示', info);  
                  }  
              })}}
    
    
    </script>
    <title>My JSP 'MyJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    
  </body>
</html>
